<table>
    <thead>
        <tr>
        	<g:sortableColumn property="lockDate" title="${message(code: 'moc.ta.lockDate.label', default: 'Lock Date')}" />
        	<th nowrap><g:message code="moc.ta.createdBy.label" default="Created By" /></th>
            <g:sortableColumn property="dateCreated" title="${message(code: 'moc.ta.dateCreated.label', default: 'Date Created')}" />
            <th nowrap><g:message code="moc.ta.lastModifiedBy.label" default="Last Modified By" /></th>
            <g:sortableColumn property="lastUpdated" title="${message(code: 'moc.ta.lastUpdated.label', default: 'Last Updated')}" />
            <th nowrap><g:message code="moc.ta.owner.label" default="Owner" /></th>
        </tr>
    </thead>
    <tbody>
    <g:each in="${taInstanceList}" status="i" var="taInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link action="show" id="${taInstance.id}"><g:formatDate  format="yyyy-MM-dd" date="${taInstance.lockDate}" /></g:link></td>
            <td>${fieldValue(bean: taInstance, field: "createdBy.username")}</td>
            <td><g:formatDate  format="yyyy-MM-dd HH:mm:ss" date="${taInstance.dateCreated}" /></td>
            <td>${fieldValue(bean: taInstance, field: "lastModifiedBy.username")}</td>
            <td><g:formatDate  format="yyyy-MM-dd HH:mm:ss" date="${taInstance.lastUpdated}" /></td>
            <td>${fieldValue(bean: taInstance, field: "owner.username")}</td>
        </tr>
    </g:each>
    </tbody>
</table>